﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001C1 RID: 449
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeGroup : IMessage<ChallengeGroup>, IMessage, IEquatable<ChallengeGroup>, IDeepCloneable<ChallengeGroup>, IBufferMessage
	{
		// Token: 0x170005F5 RID: 1525
		// (get) Token: 0x06001460 RID: 5216 RVA: 0x0003A6D0 File Offset: 0x000388D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeGroup> Parser
		{
			get
			{
				return ChallengeGroup._parser;
			}
		}

		// Token: 0x170005F6 RID: 1526
		// (get) Token: 0x06001461 RID: 5217 RVA: 0x0003A6D7 File Offset: 0x000388D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeGroupReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170005F7 RID: 1527
		// (get) Token: 0x06001462 RID: 5218 RVA: 0x0003A6E9 File Offset: 0x000388E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeGroup.Descriptor;
			}
		}

		// Token: 0x06001463 RID: 5219 RVA: 0x0003A6F0 File Offset: 0x000388F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeGroup()
		{
		}

		// Token: 0x06001464 RID: 5220 RVA: 0x0003A6F8 File Offset: 0x000388F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeGroup(ChallengeGroup other) : this()
		{
			this.takenStarsCountReward_ = other.takenStarsCountReward_;
			this.groupId_ = other.groupId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001465 RID: 5221 RVA: 0x0003A729 File Offset: 0x00038929
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeGroup Clone()
		{
			return new ChallengeGroup(this);
		}

		// Token: 0x170005F8 RID: 1528
		// (get) Token: 0x06001466 RID: 5222 RVA: 0x0003A731 File Offset: 0x00038931
		// (set) Token: 0x06001467 RID: 5223 RVA: 0x0003A739 File Offset: 0x00038939
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong TakenStarsCountReward
		{
			get
			{
				return this.takenStarsCountReward_;
			}
			set
			{
				this.takenStarsCountReward_ = value;
			}
		}

		// Token: 0x170005F9 RID: 1529
		// (get) Token: 0x06001468 RID: 5224 RVA: 0x0003A742 File Offset: 0x00038942
		// (set) Token: 0x06001469 RID: 5225 RVA: 0x0003A74A File Offset: 0x0003894A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x0600146A RID: 5226 RVA: 0x0003A753 File Offset: 0x00038953
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeGroup);
		}

		// Token: 0x0600146B RID: 5227 RVA: 0x0003A761 File Offset: 0x00038961
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeGroup other)
		{
			return other != null && (other == this || (this.TakenStarsCountReward == other.TakenStarsCountReward && this.GroupId == other.GroupId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600146C RID: 5228 RVA: 0x0003A7A0 File Offset: 0x000389A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TakenStarsCountReward != 0UL)
			{
				num ^= this.TakenStarsCountReward.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600146D RID: 5229 RVA: 0x0003A7F8 File Offset: 0x000389F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600146E RID: 5230 RVA: 0x0003A800 File Offset: 0x00038A00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600146F RID: 5231 RVA: 0x0003A80C File Offset: 0x00038A0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TakenStarsCountReward != 0UL)
			{
				output.WriteRawTag(16);
				output.WriteUInt64(this.TakenStarsCountReward);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001470 RID: 5232 RVA: 0x0003A868 File Offset: 0x00038A68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TakenStarsCountReward != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.TakenStarsCountReward);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001471 RID: 5233 RVA: 0x0003A8C0 File Offset: 0x00038AC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeGroup other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TakenStarsCountReward != 0UL)
			{
				this.TakenStarsCountReward = other.TakenStarsCountReward;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001472 RID: 5234 RVA: 0x0003A910 File Offset: 0x00038B10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001473 RID: 5235 RVA: 0x0003A91C File Offset: 0x00038B1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.GroupId = input.ReadUInt32();
					}
				}
				else
				{
					this.TakenStarsCountReward = input.ReadUInt64();
				}
			}
		}

		// Token: 0x04000873 RID: 2163
		private static readonly MessageParser<ChallengeGroup> _parser = new MessageParser<ChallengeGroup>(() => new ChallengeGroup());

		// Token: 0x04000874 RID: 2164
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000875 RID: 2165
		public const int TakenStarsCountRewardFieldNumber = 2;

		// Token: 0x04000876 RID: 2166
		private ulong takenStarsCountReward_;

		// Token: 0x04000877 RID: 2167
		public const int GroupIdFieldNumber = 9;

		// Token: 0x04000878 RID: 2168
		private uint groupId_;
	}
}
